﻿using MagicWorld.DDD.Domain.Entity;

namespace MagicWorld.DDD.Domain.Service.Impl
{
    public class EquipmentServiceImpl : IEquipmentService
    {
        private readonly EquipmentManager equipmentManager;

        public EquipmentServiceImpl(EquipmentManager equipmentManager)
        {
            this.equipmentManager = equipmentManager;
        }

        public bool CanEquip(Player player, Weapon weapon)
        {
            return equipmentManager.CanEquip(player, weapon);
        }
    }
}